function writeIslamicDate(date,adjustment) {
      //om al qura cal.
      var hcal=$.calendars.instance('ummalqura','ar');
      //Normal Cal
      var cal = $.calendars.instance();
      //Get the date from JS date
      var date=cal.fromJSDate(date);
      //Get Hijri Date from normal date
      var hdate=hcal.fromJD(date.toJD());
      var outputIslamicDate = hdate.calendar().local.dayNames[hdate.dayOfWeek()] + ", " + hdate.day() + " " + hdate.calendar().local.monthNames[hdate.month()-1] + " " 
      + hdate.year() ;
      return outputIslamicDate;
    }  
